package main

import (
	"fmt"
	_ "fmt"
)

//演示map的使用细节
func main() {
	//1.map是引用类型
	map1 := make(map[int]int)
	map1[0] = 10
	fmt.Println(map1)
	modifyMap(map1)
	fmt.Println(map1)
}

func modifyMap(myMap map[int]int) {
	myMap[0] = 100
}
